package com.witmore.neutron.ai.web.apiv2.controller;

import com.jk.common.response.ResponseResult;
import com.witmore.neutron.ai.web.annotation.NoLoginRequired;
import com.witmore.neutron.ai.web.controller.vo.CooperationInquirySubmitParam;
import com.witmore.neutron.ai.web.service.CooperationInquiryService;
import jakarta.validation.Valid;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 合作咨询控制器
 *
 * @author 豆子高
 * @since 2025-09-17
 */
@Slf4j
@RestController
@RequestMapping("/v2/api/cooperation")
public class CooperationInquiryControllerV2 {

    @Autowired
    private CooperationInquiryService cooperationInquiryService;

    /**
     * 提交合作咨询
     *
     * @param param 合作咨询参数
     * @return 提交结果
     */
    @NoLoginRequired
    @PostMapping("/inquiry/submit")
    public ResponseResult<Void> submitInquiry(@Valid @RequestBody CooperationInquirySubmitParam param) {
        log.info("收到合作咨询提交请求：{}", param.getCompanyName());
        return cooperationInquiryService.submitInquiry(param);
    }

}
